package com.ruoyi.supermarket.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售详情对象 tb_xqsale
 * 
 * @author ruoyi
 * @date 2024-05-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Xqsale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号id */
    private Long xqsaleId;

    /** 汇总id */
    @Excel(name = "汇总id")
    private Long saleId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private Long sum;

private BigDecimal profit;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal zprice;

    /** 1入库 0未入库 */
    @Excel(name = "1入库 0未入库")
    private String isRk;

    private String batch;

    //-----------追加属性
    private String saleCode;
    private  String supplyName;
    private String productCode;
    private String productName;
    private String unit;
    private LocalDateTime manufactureDate;
    private LocalDateTime expirationDate;
    private String productBrand;

    public void setXqsaleId(Long xqsaleId) 
    {
        this.xqsaleId = xqsaleId;
    }

    public Long getXqsaleId() 
    {
        return xqsaleId;
    }
    public void setSaleId(Long saleId) 
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setSum(Long sum) 
    {
        this.sum = sum;
    }

    public Long getSum() 
    {
        return sum;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setZprice(BigDecimal zprice) 
    {
        this.zprice = zprice;
    }

    public BigDecimal getZprice() 
    {
        return zprice;
    }
    public void setIsRk(String isRk) 
    {
        this.isRk = isRk;
    }

    public String getIsRk() 
    {
        return isRk;
    }

}
